cmake_minimum_required(VERSION 3.1)

project(OPEN1)


set(CMAKE_CXX_FLAGS "${CAMKE_CXX_FLAGS} -std=c++11 -pthread")
find_package(OpenCV REQUIRED)
find_package(realsense2 REQUIRED)

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
    /usr/local/include
    ${CMAKE_CURRENT_SOURCE_DIR}/include
    ${OpenCV_INCLUDE_DIRS}
)

add_executable(CAMER
    src/main.cpp
    src/align.cpp
    src/LinuxSerial.cpp
)

target_link_libraries(CAMER
    ${OpenCV_LIBRARIES}
    ${realsense2_LIBRARY}
    
)
